package com.myproject.shop.domain;

import io.swagger.annotations.ApiModel;

import javax.validation.constraints.Size;
import java.util.Date;
@ApiModel
public class Staff {

    private Integer sid; // 员工编号，对应数据库中的sid字段，作为主键


    @Size(min = 2,max = 6,message = "名字在2-6个字符之间")
    private String sname; // 姓名
    private String sgender; // 性别
    private String idcard; // 身份证号

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getSgender() {
        return sgender;
    }

    public void setSgender(String sgender) {
        this.sgender = sgender;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public Date getEntryTime() {
        return entryTime;
    }

    public void setEntryTime(Date entryTime) {
        this.entryTime = entryTime;
    }

    public String getContactNumber() {
        return contactNumber;
    }

    public void setContactNumber(String contactNumber) {
        this.contactNumber = contactNumber;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    private String position; // 岗位
    private Date entryTime; // 入职时间
    private String contactNumber; // 联系方式
    private String password; // 密码
}
